package com.oauth2.service.impl;

import com.oauth2.dao.UserEntityDAO;
import com.oauth2.domain.UserEntity;
import com.oauth2.service.IUserService;
import org.springframework.stereotype.Service;

/**
 * @author shipeilei
 * @date 2020-7-16 12:17:32
 * @desc desc
 */
@Service
public class IUserServiceImpl implements IUserService {
    private final UserEntityDAO userEntityDAO;

    public IUserServiceImpl(UserEntityDAO userEntityDAO) {
        this.userEntityDAO = userEntityDAO;
    }

    @Override
    public UserEntity findByUsername(String username) {
        return userEntityDAO.findByUsername(username);
    }
}
